package cn.itheima.service.impl;


import cn.itheima.dao.UserDao;
import cn.itheima.domain.Items;
import cn.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    //自动导入该接口类型的对象
    @Autowired
private UserDao userDao;
    @Override
    public List<Items> findAll() throws Exception {
        return userDao.findAll();
    }
}
